<?php
require_once '../header.php';
?>
<div>
    <h1 id="Contentitle">Problemas</h1><br />
</div>
<div>
    <div>
        <form  id="formProblema" action="http://localhost/Matematrix/admin/problema.php" method="post">
            
            <div class="linha">
                <input type="hidden" value="<?php echo isset($id) ? $id : "-1" ?>"/>
                <label class="formLabelEsq">Título</label>
                <input class="formInputLine" type="text" name="titulo" value="<?php echo isset($titulo)? $titulo : ""?>"/>
            </div>
            <div class="linha">
                <label class="formLabelTextarea">Problema</label>
                <textarea class="formInputLine" name="problema" rows="12" cols="50"><?php echo isset($problema)? $problema : ""?></textarea>
            </div>
            <div class="linha">
                <label class="formLabelTextarea">Resposta</label>
                <textarea class="formInputLine" name="resposta" rows="12" cols="50"><?php echo isset($resposta)? $resposta : ""?></textarea>
            </div>
            <div class="linha">
                <label class="formLabelTextarea">Sugestões</label>
                <textarea class="formInputLine" name="sugestoes" rows="12" cols="50"><?php echo isset($sugestoes)? $sugestoes : ""?></textarea>    
            </div>
            <div class="linha">
                <div id="linhaBotoes">
                    <input id="submeter" type="submit" value="Enviar"/>                 
                    <input id="cancelar" type="reset" value="Cancelar"/>
                </div>
            </div>
        </form>
    </div> 
</div>
<?php
require_once '../footer.php';
?>